Added uploadDownsize() 

Added uploadDownsize() function to proportionally reduce (if needed) the size of the image in terms of pixels and to compress it in terms of quality before upload