Wrote a method to create a bitmap from some image data