Fix crashes from out-of-bounds shadow drawing (#16)