Some attempt at generating from bitmap