made source optional, if not specified a file dialog comes up to select an image.