fixing image upload issues