fixing image upload, structure