moved :trim option to the first part of the URL

The URL generated when the :trim option was set was invalid since it had the /trim/ argument after the image size.

Moved it to the begining of the URL according to
https://github.com/globocom/thumbor/wiki/Usage#trim