Improve image layout stability