removing unused variable in images controller.

Thanks to Refactor Cop I found an unused variable!