fix upload image issue