Make gallery item image views respect the aspect ratio of the drawing

- this required changes to the CoreData model to hold onto thumbnail width/height so aspect ratios could be computed *before* decoding the image, to prevent resize flashes at run time
- also, got rid of all references to 'internal' modifier since that's the default state in swift