Add image draw function