Add test-image command

Add initial implemention to test an image.