Text this: Model-based implementation of self-configurable intellectual property modules for image histogram calculation in FPGAs