fixed image not resizing properly