Adding resize image class.