Upadating image gallery and folder structure