Fix lineprofile viewer plugin

This should address #610 - lineprofile now auto-updates for color or grayscale images.