fix image processing from on the console.