Write draw function for cell