added image processing to uploader