Drawbitmap optimisation