change image size from our own code which was not ruby 2.0 compatible to a gem that does correctly work with ruby 2.0