Added erode and dilate after hough transform for deleting small components. Dispatched in main thread the image picker methods.