Refacto image controller