Implemented support for resizing picture before upload