prevent inserting multiple images