fix image black edge issue