API for applying filters like instagram (PHP)