allowing drawing more images than the number of images in the database