fix iOS 7 thumbnail generation, clean up implementation