Commited fix to issue #1724 (http://ocportal.com/tracker/view.php?id=1724). [Maximum filename length generating thumbnails]
Misc fixes