fix bug: dont save for each pixels