I don't need to 777 the images directory of themes in assets directories
: I remove the is_file and replace it by extension file validation (jpg
/png / gif)