LPS-49766 Add check for legacy images on ImageImpl.getTextObj() as well