-- clean up of unused variables
-- added init flag to change inversion of image