fixing image permits