better handling for long titles, don't stretch small images, fix orientation