Uncommented line in prepare that actually resizes the images.