fix text/photo widget new image storage
fix image gallery bihaviour if some variables are missing