Fixed HSV converter, improved greyscale-loading

HSV-converter now returns a valid value for black pixels.
Loading function now regards the maximim value stored in an image,
instead of the theoretical maximum, defined by BitsPerSample.