Limit size, convert to jpg, and autorotate uploaded file.