fix displaying of uploaded image