fixing avatar upload to AS3