Added autoreleasepool to dictionaryOfCSSStyles to reduce memory usage