Improved code used by beam. Made it easy to add offsets to beam origin in anticipation of off-center sprites.