Use CURLOPT_RETURNTRANSFER because fopen(…, 'x') + curl fails on PHP ≤ 5.3.3.
Improve error messages if fopen(…, 'x') fails.
Only enforce allow_origin if Origin header provided.
Apply the max param for individual tags.
Fetch bird_blue_16.png.