Updated for fig file upload