resizes pic in directory