add photo compression to speed up upload