The thing is that I prefer to use absolute paths and here the absolute "image_path" setting was not being honored. In fact, this is just the same snippet of code that you did in, which is perfect.

https://github.com/chriseppstein/compass/blob/master/lib/compass/sass_extensions/functions/image_size.rb