Scale uploaded images (fixes #34)