more efficient layer rendering
Added diagonals
oscillate function
Added frame offsets