Switch conditional to OR.
Merge pull request #350 from square/jw/or

Switch conditional to OR.
Custom transformations should throw on main thread.
Merge pull request #355 from square/dimitris/throw-to-main

Custom transformations should throw on main thread.
Enable resource loading from android.resource URI.