Avoid using bitmap_layer_get_bitmap because it is not included in SDK beta4