this function returns an array of image formats in a given folder
The folder to search for images in
An array of image formats
this function returns an array of image formats in a given folder