added break words
readded intelligent image alignment