Enh image plotting

This pull request contains some fixes and a significant perfomance boost for image plotting.