Fixed an empty image issue and an image list issue

Server doesn't die on empty image editing anymore.

Fixed an image list issue do it loads image previews on edit.