There are only a few reasons why it would ice up.
Your coolant is low, if this is the case, you have a leak and it is not going to be cool.
There is a restriction of air flow. Check to be sure the coils are clean. You can buy coil cleaner from a supply house. Spray it on, let it sit and then...