align image tags vertically and add tests accordingly