fixed resource detail error
fixed error with getResource
small fix to getImage return types
started refactoring API