corrected logic in images save processor