Prevent image from overlapping cell