Revert ccimage

* use macro to control whether using jpeg, tiff and webp or not
* fix some coding style