fixed some bugs for 136r
improve image upload