xvfb test env
add screen capture func
add jpeg encoder func
update test file