fixes facilities and image uploads