Allow draw function to be retained by hotloop optimiser