Check for image earlier so we can open in binary