adding source rect, making math lib more useful
sprite handling