Fix upload canvas issue

saving canvas depends on 1. upload file and 2. drawing completed