I fixed the issue by adding "cq-dd-image" to original image rendering like below <div data-sly-test="${highlight.hasContent}" class="cq-dd-image textimage-${highlight.alignment || 'left'}" data-sly-resource="${'image' @ resourceType='core/wcm/components/image/v1/image' , wcmmode='disabled'}...