How do you limit image size, by resolution or filesize/compression or a bit of both?