modified the file to fix the problems with the size of the images