debugged Image class (saveToFile())