fixing permission issues with images/resources