Slim version from https://github.com/kazuhikoarase/qrcode-generator