Scrot is a screen capture utility for Linux that can be run from the command line. The program uses imlib2 library to create and save the images.
To create a screen capture with a unique name of current date and time stamp, and move the file immediately to a specific folder, the following command could be used as guidance;
$ scrot 'scrot-%Y%m%d-%H%M%S.png' -e 'mv $f ~/scrots/'
In the above example, characters preceded by a % are interpreted by strftime.