add nil context checking
add ignoreMotionRotation
add overlay image functionality