Add height and width constraints for lazyload.