Test image code