center image at origin
added downsampling to images, will reduce images to a total of less than 1000 pixels