Add per-edge costumes

Removes global costumes.
Fix edited costumes not always being marked as loaded
Fix error with numeric defaults in dialogs
Add width scaling support for edge costumes
Decouple patterns and their images