the first draft of the intToImage