Added screenshot functionality using imlib2_grab.