implement image and literal tests