ECMS-5357: Fix the problem relate to insert image feature