fixed number comparator. removed unused methods and variables from Picturehandler.