Made sure all images had the same dimensions