Minor fixes for resize

The image should now scale properly on resize.