Adjust image viewer size to match that of text