Generate the images with the correct size