Use photon to resize images on the fly