removed duplicate gui-utils dependency
fixed invalidation of buffered graphics
using custom layout for fitting to the panel
refactored rendering of color scale
updated computing size for legend scale