Finish uplaod resize function (#137)
configurable, some fixes, polyfill for chrome