fjerner litt useless code i image api ctrl