Standardize photo size

When you take a picture with the camera, the size was scaled down if it was too big.

However, this wasn't being done with pictures from gallery, and this allowed massive pictures and led to OOM errors.

I set up gallery and camera pictures to be resized using the same function so we have some standardization. I picked a somewhat arbitrary size though, and we can talk about that limit.