NSData+TDTImageMIMEDetectionCategory on NSData to check if it represents PNG or JPEG.License: BSDObjective C