further updates, specify options, image size, add a clean function and enable numbered looping