Upload image bug fixed