Fixed images not resizing properly