 				\tlet verticalRatio: CGFloat = #{@bounds}.size.height/#{doc.height}
 				\tlet horizontalRatio: CGFloat = #{@bounds}.size.width/#{doc.width}
 				\tlet scale: CGFloat = verticalRatio < horizontalRatio ? verticalRatio : horizontalRatio
-				\tCGContextTranslateCTM(context, (bounds.size.width-#{doc.width}*scale)*0.5, (bounds.size.height-#{doc.height}*scale)*0.5)
+				\tCGContextTranslateCTM(#{@context}, (#{@bounds}.size.width-#{doc.width}*scale)*0.5, (#{@bounds}.size.height-#{doc.height}*scale)*0.5)
 				\tCGContextScaleCTM(#{@context}, scale, scale)
 			"""
 

				\tconst CGFloat verticalRatio   = #{@bounds}.size.height/#{doc.height};
				\tconst CGFloat horizontalRatio = #{@bounds}.size.width/#{doc.width};
				\tconst CGFloat scale = verticalRatio < horizontalRatio ? verticalRatio : horizontalRatio;
				\tCGContextTranslateCTM(context, (bounds.size.width-#{doc.width}*scale)*0.5, (bounds.size.height-#{doc.height}*scale)*0.5);
				\tCGContextScaleCTM(#{@context}, scale, scale);
			"""


		indent:     ""

		constructor: ( options ) ->

			switch options.type
				when 'SVG'
