fixed bottom and right spacing issue with image resizing