cleanup diff command
fix image check