# Images are usually cool to serve from a different domain but if you want access 
# to their data with canvas, you're in trouble.  
# This snippet allows you to get raw image data via canvas:

<IfModule mod_setenvif.c>
    <IfModule mod_headers.c>
        <FilesMatch "\.(cur|gif|ico|jpe?g|png|svgz?|webp)$">
            SetEnvIf Origin ":" IS_CORS
            Header set Access-Control-Allow-Origin "*" env=IS_CORS

# After you get that image data, you can add filters and more.  
# Here's a tutorial showing you how to convert the image to canvas:
# http://davidwalsh.name/convert-canvas-image