continuing on the image variation code.