add restriction for image edit