command-line args and additional function for generating the image...