Fixes image acces problem