Calculating Point Spread Functions: Methods, Pitfalls and Solutions