OK, so I figured out how to get this to load properly without adding it to the Gemfile.  You can just alter lib/tasks/tim_tasks.rake with

```
require 'state_machine'
require 'tasks/state_machine'
```

Then the call to the rake task can be run from root of project with:

```
bundle exec rake app:state_machine:draw app/models/tim/target_image.rb CLASS=Tim::TargetImage
bundle exec rake app:state_machine:draw app/models/tim/provider_image.rb CLASS=Tim::ProviderImage
```