setImageProcessingHook, removeImageProcessingHook for layers