Everything only plays selected image formats.
If you want tok write your own player, you'll have to write your own code to support every file format you want to support. Good luck with that, you'll need a ton of it. Oh, and it'll probably take you years to finish due to the massive number of image file formats.
Or, you can see what
VNC Player[
^] can do for you.