Feature/capture image

There are still no tests here but most functionality added are used by server-game.