Added check for file within assets/images