RESTful Image API implementation in Ruby