* now only displays images with valid mime types
* valid_image() returns getimagesize() output if the second parameter is equal to 1
* minor clean-up and further testing
* minor refactoring
*
* modified placeholders
* commented out template placeholders from all placeholders array