Fixed issues regarding the size and number of images.
Fixed the SEGFAULT when exiting the program.
Refactored some function names in main (program options).
Separated the implementation of 'image_buffer' in a separate source file.