fix image resolution.