version where canvas causes crashes but image saving works