alert when images are of different dimensions