fixed asset paths of image uploader
added image scaling, added options array and rearranged code