fixed the insertion of picture