Image Acquisition and Gradient Method for Main Subject Detection