removed depreciated image write to disk