Convert images (jpg, gif, png) to base64 encoded CSS classes