extract image path builder into factory and made it possible to append additional query string params if any are already present