fix 32-bit image detection