Fix errors in image editor template