make a class can reslove barpic to bar code