Added a global helper method to create the new image