Fixed bug in cropping, cleaned up dialog, added title and header