Resize images from files, streams, and multipart forms