Refactored script to separate canvas operations from processes. Added title text to frames.