You can easily sway the posterized image if you have made the image a Smart object. You create the smart object by right-clicking the image in the layers panel and choosing Convert to smart object. The image will become a smart object and will keep its original quality. To swap the image that was posterized for another image so that it becomes posterized, right-click on the smart object and choose Edit content.