added fig to image uploads