 					yOffset = 0;
 					break;
 				case BitmapText.VERTICAL_ALIGN_CENTER: 
-					yOffset = -imageBitmapData.height/2;
+					yOffset = -imageBitmapData.height / 2;
 					break;
 				case BitmapText.VERTICAL_ALIGN_BOTTOM:
 					yOffset = -imageBitmapData.height;

					xOffset = 0;
					break;
				case BitmapText.HORIZONTAL_ALIGN_CENTER: 
					xOffset = -imageBitmapData.width/2;
					break;
				case BitmapText.HORIZONTAL_ALIGN_RIGHT: // x is aligned to right side of text
					xOffset = -imageBitmapData.width;

	import flash.geom.Point;
	import flash.net.URLRequest;
	
	import mx.core.BitmapAsset;
	import mx.rpc.events.FaultEvent;
	import mx.rpc.events.ResultEvent;
	
	import weave.api.WeaveAPI;
	import weave.api.data.IQualifiedKey;
	import weave.api.data.ISimpleGeometry;
	import weave.api.getCallbackCollection;
	import weave.api.primitives.IBounds2D;
	import weave.api.registerLinkableChild;
	import weave.api.reportError;
	import weave.api.ui.IPlotterWithGeometries;
	import weave.core.LinkableNumber;
	import weave.core.LinkableString;
	import weave.core.SessionManager;
	import weave.primitives.SimpleGeometry;
	import weave.utils.BitmapText;

	/**
	 * A plotter for drawing a single image onto a tool.
	 *  
	 * @author skolman
	 * @author kmonico
	 */	
	public class SingleImagePlotter extends AbstractPlotter implements IPlotterWithGeometries
	{
		public function SingleImagePlotter()
		{
		}
		
		/**
		 * The horizontal alignment used for any text.
		 */		
		public const horizontalAlign:LinkableString =  registerLinkableChild(this, new LinkableString(BitmapText.HORIZONTAL_ALIGN_LEFT));
		/**
		 * The vertical alignment used for any text. 
		 */		
		public const verticalAlign:LinkableString = registerLinkableChild(this, new LinkableString(BitmapText.VERTICAL_ALIGN_TOP));		
		
		/**
		 * The X coordinate in original unprojected data coordinates.
		 */		
		public const dataX:LinkableNumber = registerLinkableChild(this, new LinkableNumber());
		/**
		 * The Y coordinate in original unprojected data coordinates. 
		 */		
		public const dataY:LinkableNumber = registerLinkableChild(this, new LinkableNumber());
		
		/**
		 * The width of the image in unprojected data coordinates. 
		 */		
		public const dataWidth:LinkableNumber = registerLinkableChild(this, new LinkableNumber());
		/**
		 * The height of the image in unprojected data coordinates. 
		 */		
		public const dataHeight:LinkableNumber = registerLinkableChild(this, new LinkableNumber());
		
		/**
		 * The URL of the image to download.
		 */		
		public const imageURL:LinkableString = registerLinkableChild(this, new LinkableString(), handleImageURLChange);
		
		[Embed(source='/weave/resources/images/red-circle.png')]
		private var defaultImageSource:Class;
