Add mutations to the image function