http://css-tricks.com/snippets/php/create-data-uris/