resize images so that twitter will not reject them