hole filling option added and zero sized images check