Fix bug in admin image controller