Replace deprecated NSImage method with recommended equivalent