Fix memory leak when re-tiling an image
Reduce code duplication in main
Simplify image implementation
Simplify tile implementation
Remove unnecessary tests
Calling free(NULL) just does nothing.
Pass small struct by copy
Fix using uninitialized memory
Store the pattern ID as a comment in images
Add game controller support
Restructure input handling
It will make it easier to add gamepad input.
Restructure option parsing
Change the type of some options
They now match the types used internally.
Make str_to_rgb() more robust
Allow setting the random number generator seed