temp img save implemented -> needs to be tested