Using CPU to generate the grey-scale, sepia-tone and revert effect in main thread, very very slow