Changed image caption/insert function