Implemented bitmapRepresentation function in ViewController class.