Changed permission code for saved thumbnails - gallery module