removes the top-gap on resizing the image