This function will scan the string $file for malicious code and return a true or false if the image is safe or not.