Read resource instead of absolute path for model