fixed all image upload issues