input test images and codes