Add width and height accessors to images
Preserve images' aspect ratio in image viewer #143