Crop and preview dialogs

WIP