Attempt at making it work on Linux using scrot rather than the Robot class.