fix image zero width problem