refactored touchinputimages