added some image comparison methods: if old image parameters differ from current file, then create new image. Otherwise, it is safe to re-cycle old image.