add picture detect to config