fix image-min flatten

Fix flatten image bug. Image should now appear properly again.