added function for generating input from custom generated images