Bugfix

Fixed an issue with picking the nearest percent from the supplied images.