Put only_if in the dsl part of resize.rb