image layout bugfix