added function to create bitmap from SDL surface