Update createImage (lost in commits)