Split off image converting code into its own module.
Added initial .cabal file, it might even work!