Fix outputting image in display mode.
Fix setting image source if editing images.
[jan] Add optional dependency on imagick PECL extension.
[jan] Fix converting to grayscale with imagick driver.
Remove current edit image if resetting image.

Otherwise old modifications will be applied again after the the first mod after
the reset.