correctly detects jpg master.