 						@result.join "\n"
 
 				when 'CoreGraphics'
+					{ ctx: @context, bnd: @bounds } = options
+
 					if "swift" is options.lang
 						@initClosure = @initClosureSwift
 					else

				\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)
				\tCGContextScaleCTM(#{@context}, scale, scale)
			"""


		indent:     ""

		constructor: ( options ) ->

			switch options.type
				when 'SVG'
