rotation = getEnvObject().getCurrentRepresentation().getRotation();
dx = getEnvObject().getCurrentRepresentation().getOffset().getX();
dy = getEnvObject().getCurrentRepresentation().getOffset().getY();
context.translate(dx, dy);
context.rotate(rotation);
WebGraphics g = new WebGraphics(context);
if (ImageUtils.CachedImages.containsKey(OBJECT_PATH + file)) {
Image im = ImageUtils.CachedImages.get(OBJECT_PATH + file);
ImageElement ie = ImageElement.as(im.getElement());
//ghostPath = new Rectangle(ie.getWidth(),ie.getHeight());
ghostPath = objectBounds;
context.drawImage(ie, 0, 0, box.getWidth(), box.getHeight());
//draw box surronding object
//draw the border
context.setLineWidth(1);
g.setColor(new Color(137, 174, 32));
g.draw(box);
} else {
// //TODO: Cache path
// Paint paint = new Paint();