bugfix: do not save an empty image (save before filter is loaded)