fixed file naming function, other minor fixes
fixed loading of images in all cases
fixed empty title issue
merged from testing