Lightweight implementation for drawing on iOS