Created function createBitmap

Function works for images with acceptable resolution