Serving adaptive images per device: any easy way

Serving adaptive images per device: any easy way to implement via custom function? I've tried a plugin (http://wordpress.org/plugins/new-nine-adaptive-images/) though it's buggy and lacks support. Thanks!