Add width and height methods directly to image.