Added test case to exercise image encoding/decoding.