resize new uploads to fit max dimensions