Fix saving cached thumbnail image size if its nil
Fix set thumbnail image

…  after setting image view content mode, otherwise it won't take the correct mode
Merge pull request #2 from exalted/master

Various fixes