Clean code
Restriction to image files for LocalGallery