First go at shrinking photos down to under the max permitted size when sending to the API
catch null values