add picture function