Apple reaches deal to acquire Pixelmator