fix for "insert picture" button
removed duplicated code