fix admin image update function