random PEP fixing
Closes #1137 API: Thumbnails api.  Closes #1136 CORE: Thumbnails plugin.