add picture element and related attributes