Image justification

as seen on flicr, ported to jQuery.