Add new example showing how to detect image types by the file headers