implemented reduction of upload image size