Add draw picture function