Disable invalid imgformat check.