Making image diff tests platform-specific