Fixes bug with image resizing on index page