 package laml.display {
 	import flash.display.Bitmap;
+	import flash.display.DisplayObject;
 	import flash.display.Loader;
 	import flash.events.Event;
 	import flash.events.IOErrorEvent;

			newValue = createImageFromValue(newValue);
			if(newValue) {
				bitmap = newValue;
				bitmap.smoothing = true;
				view.addChild(bitmap);
				preferredWidth = originalWidth = bitmap.width;
				preferredHeight = originalHeight = bitmap.height;
			}
		}
		
		private function createImageFromValue(value:*):Bitmap {
			if(value is Bitmap) {
				return value;
			}
			else if(value is Class) {

	import laml.events.PayloadEvent;
	
	public class Image extends Component {
		private var bitmap:DisplayObject;
		private var originalWidth:Number;
		private var originalHeight:Number;
		
