fix regrex bug that match image source