Improved pixel selection

The plugin will now properly count the most common pixel in the image,
if there is not, the central pixel will be taken as reference, instead
of the top-left corner, which gives way better results.
Minor bugfix

Point selected when no pixel is the most common is now really the middle
one...